<template>
	<view class="content">
		<image :src="data" mode=""></image>
		
		
	</view>
</template>

<script>
export default {
	data() {
		return {
			data: '',
			id: '',
			index:''
		};
	},
	onLoad(e) {
		e && (this.id = e.id);
		if (e.id == 1) {
			this.index = 1
			uni.setNavigationBarTitle({
				title: '新手指引',
			});
		}
		if (e.id == 2) {
			this.index = 2
			uni.setNavigationBarTitle({
				title: '推广教程',
			});
		}
		if (e.id == 3) {
			this.index = 3
			uni.setNavigationBarTitle({
				title: '最新活动',
			});
		}
		if (e.id == 4) {
			this.index = 4
			uni.setNavigationBarTitle({
				title: '常见问题',
			});
		}

		this.lPic();
	},
	methods: {
		
		async lPic() {
			let obj = {
				//uid: uni.getStorageSync('uid'),
			};
			const res = await this.$u.post('api/user/long_figure', obj, {});
			if (!res.code) return  uni.$showMsg();
			this.data = res.data[this.index].url;
			console.log('this.data  :>> ', this.data );
		},
	},
};
</script>

<style>
page {
	background-color: #fcfaff;
}
.content {
	padding: 20rpx;
}
</style>
